package nc.bs.pu.bg;

import nc.bs.pu.bp.Ap2EasReqBp;
import nc.bs.pub.pa.PreAlertObject;
import nc.bs.pub.taskcenter.BgWorkingContext;
import nc.bs.pub.taskcenter.IBackgroundWorkPlugin;
import nc.vo.pub.BusinessException;

public class ApFile2EasBg implements IBackgroundWorkPlugin{

	@Override
	public PreAlertObject executeTask(BgWorkingContext context) throws BusinessException {
		
		Ap2EasReqBp bp = new Ap2EasReqBp();
		
		String[] billids = bp.query();
		
		if(billids != null) {
			bp.send(billids);
		}
		
		return null;
	}

}
